package com.yserp.project.erp.order.deliveryorder.domain;

import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.yserp.framework.aspectj.lang.annotation.Excel;
import com.yserp.framework.web.domain.BaseEntity;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 销售发货订单对象 erp_delivery_order
 * 
 * @author yserp
 * @date 2022-07-26
 */
@TableName("erp_delivery_order")
@Data
public class DeliveryOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 发货订单id */
    private Long id;

    /** 订单号 */
    @Excel(name = "订单号")
    private String orderCode;

    /** 订单号 */
    private Long saleOrderId;

    /** 订单号 */
    @Excel(name = "销售订单号")
    private String saleOrderNo;

    /** 供应商ID */
    private Long supplierId;

    /** 供应商名称 */
    @Excel(name = "供应商名称")
    private String supplierName;

    /** 客户ID */
    private Long customerId;

    /** 客户名称 */
    @Excel(name = "客户名称")
    private String customerName;

    /** 业务责任人 */
    @Excel(name = "业务责任人")
    private String businessManager;

    /** 承运商ID */
    private Long carriersId;

    /** 承运商名称 */
    @Excel(name = "承运商名称")
    private String carriersName;

    /** 销售金额 */
    @Excel(name = "销售金额")
    private BigDecimal amounts;

    /** 物流费用 */
    @Excel(name = "物流费用")
    private BigDecimal logisticsFee;

    /** 结算方式 */
    @Excel(name = "结算方式")
    private String settlementWay;

    /** 发货时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发货时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date deliveryTime;

    /** 订单状态（0:未审核 1:已审核） */
    @Excel(name = "订单状态", readConverterExp = "0=:未审核,1=:已审核")
    private String orderStatus;

    /** 发货状态（0:未发货，1:已发货） */
    @Excel(name = "发货状态", readConverterExp = "0=:未发货，1:已发货")
    private String deliveryStatus;

    /** 删除标志（0代表存在 2代表删除） */
    @TableLogic
    private String delFlag;


}
